package org.fastsyncer.manager.framework;

import org.fastsyncer.common.entity.MappingTask;
import org.json.JSONObject;

public interface Manager {

	/**
	 * 全量同步
	 * 
	 * @param mapping
	 *            JSON映射配置
	 * @throws Exception
	 */
	public void handle(String mapping) throws Exception;

	/**
	 * 全量同步
	 * 
	 * @param mapping
	 *            映射配置
	 * @throws Exception
	 */
	public void handle(MappingTask mappingTask) throws Exception;

	/**
	 * 增量同步
	 * 
	 * @param msg
	 *            增量同步消息
	 * @throws Exception
	 */
	public void handleIncrement(JSONObject msg) throws Exception;

}
